var sqlite3 = require('sqlite3').verbose()
var path = require('path')

var db = new sqlite3.Database(path.join(__dirname,'/db.sqlite'), function(err) {
    if(err) {
        console.log('open sqlite file fail')
        throw(err)
    } else {
        console.log('open sqlite file ok')
    }
})
module.exports = db
